package com.my.hotel.service.impl;

import com.my.hotel.entity.Order;
import com.my.hotel.mapper.TbOrderMapper;
import com.my.hotel.service.TbOderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbOderServiceImpl implements TbOderService {

    @Autowired
    private TbOrderMapper tbOrderMapper;


    public List<Order> getList(String order_num, String order_status, String user_id) {
        List<Order> list = tbOrderMapper.getList(order_num,order_status,user_id);
        return list;
    }

    public void preOdr(int id) {
        tbOrderMapper.preOdr(id);
    }

    public void liveOdr(int id) {
        tbOrderMapper.liveOdr(id);
    }

    public void returnOdr(int id) {
        tbOrderMapper.returnOdr(id);
    }

    public void calOdr(int id) {
        tbOrderMapper.calOdr(id);
    }
}
